package com.ftg.learn.chapter01;

/**
 * 学习一下自加自减
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/4/11 下午5:37
 */
public class LearnOptions2 {

    public static void main(String[] args) {
        System.out.println(args[0] + args[1]);
        int a = 9;

//        变量 ++  下一次遇到我我自动+1
//        ++变量   马上+1
        int b = a++  + a;
        System.out.println(b);

        int aint1 = 13;

        int aint2 = 13;
        System.out.println(aint1 == aint2);
//   == 在基本数据类型里面判断字面值是否相等
        //包装类 :
        Integer ainteger1 = 13;
        Integer ainteger2 = 13;

        System.out.println(ainteger1 == aint1);
        System.out.println(ainteger1 == ainteger2);

        //new 引用类型 创建新地址 (堆里面)
        Integer ainteger3 = new Integer(13);
        Integer ainteger4 = new Integer(13);
        System.out.println(ainteger3);

        System.out.println(ainteger3 == ainteger4);

        System.out.println('a' > 'b');

        System.out.println(true == true);

        System.out.println(2 & 4);
        System.out.println(2 | 4);

        System.out.println(2 << 2);
        System.out.println(8 >> 1);
//        1000

        char c = '\n';

        double doub1 = 2D;

        System.out.println(16 >> 1);
        System.out.println(16 >>> 1);

//        int const = 23;

        int NULL = 23;
//        int false = 23;


        int at = 0123;
        System.out.println(at);


    }

}
